<table class="table table-hover">
  <thead>
    <tr>
      <th>ID</th>
      <th>商品名称</th>
      <th>发布时间</th>
      <th>价格</th>
      <th>销量</th>
      <th>状态</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <volist name="productLists" id="vo">
      <tr>
        <td>{$vo.id}</td>
        <td>{$vo.name}</td>
        <td>{$vo.create_time|date="Y-m-d H:m", ###}</td>
        <td>{$vo.price}{$vo["priceAttribute"]}</td>
        <td>{$vo.saled_count}</td>
        <td class="status">{$vo["status"]?"上架":"下架"}</td>
        <td>
          <a class="btn btn-primary btn-xs" href="__CONTROLLER__/modify/id/{$vo.id}/cat_id/{$vo.cat_id}">修改</a>
          <a class="btn btn-primary btn-xs" href="__CONTROLLER__/setAttribute/id/{$vo.id}/cat_id/{$vo.cat_id}">设置属性</a>
          <a class="btn btn-primary btn-xs" href="{:U('ProductActivity/index','product_goods_id='.$vo['id'])}">活动设置</a>
          <a class="btn btn-primary btn-xs" href="{:U('ProductGoodsConfig/index','id='.$vo['id'])}">扩展设置</a>
          <a class="btn btn-info btn-xs action-status" data-action-id="{$vo.id}" data-action-txt="执行中……" data-action-status="{$vo.status}" data-action-status-txt="上架 下架" data-action-url="__CONTROLLER__/setStatusPost/cat_id/{$vo.cat_id}">{$vo["status"]?"下架":"上架"}</a>
          <a class="btn btn-danger btn-xs actionds" data-action-id="{$vo.id}" data-action-txt="移除中……" data-action-url="__CONTROLLER__/removePost/cat_id/{$vo.cat_id}">移除</a>
        </td>
      </tr>
    </volist>
  </tbody>
</table>
<div class="pagination">{$pagination}</div>